package com.balance.utils.redis;

import cn.dev33.satoken.stp.StpUtil;
import com.alibaba.fastjson.JSON;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.autoconfigure.security.SecurityProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.data.redis.core.StringRedisTemplate;

/**
 * @Title: RedisUtil
 * @Author 小东
 * @Package com.balance.utils.redis
 * @Date 2025/4/1 15:12
 * @description: redis工具类
 */
public class RedisUtil {
    public static final String LOGIN_CODE_KEY = "login:code:";
    public static final Long LOGIN_CODE_TTL = 2L;
    public static final String LOGIN_TOKEN_CODE = "login:token:";
    public static final String AUTO_GENERATOR_STR = "dong_";

    @Bean
    public static StringRedisTemplate stringRedisTemplate(){
        return new StringRedisTemplate();
    }


}
